import axios from "../api"; // 导入接口配置
/**
 * 获取页面初始数据
 * @param params
 * @returns
 */
export const GetPageInitData = async (params: any) => {
  return await axios.post("/api/PageModuleSetup/GetPageInitData", params);
};
/**
 * 上传MAP图
 * @param params
 * @returns
 */
export const InsertOrUpdateMapPicture = async (params: any) => {
  return await axios.post("/api/TypeAPage/InsertOrUpdateMapPicture", params);
};

/**
 * 获取MAP图
 * @param params
 * @returns
 */
export const GetMapPicture = async (params: any) => {
  return await axios.post("/api/TypeAPage/GetMapPicture", params);
};

/**
 * 编辑模块
 * @param params
 * @returns
 */
export const UpdatePageModel = async (params: any) => {
  return await axios.post("/api/PageModuleSetup/UpdatePageModel", params);
};

/**
 * Map图数据绑定
 * @param params
 * @returns
 */
export const InsertBindData = async (params: any) => {
  return await axios.post("/api/TypeAPage/InsertBindData", params);
};

/**
 * 获取A1页面绑定数据
 * @param params
 * @returns
 */
export const GetBindData = async (params: any) => {
  return await axios.post("/api/TypeAPage/GetBindData", params);
};

/**
 * 添加矢量图标数据绑定
 * @param params
 * @returns
 */
export const InsertPropertyBind = async (params: any) => {
  return await axios.post("/api/TypeAPage/InsertPropertyBind", params);
};

/**
 * 获取矢量图标数据绑定
 * @param params
 * @returns
 */
export const GetPropertyBind = async (params: any) => {
  return await axios.post("/api/TypeAPage/GetPropertyBind", params);
};

/**
 * 删除一级工具
 * @param params
 * @returns
 */
export const DeleteFirstData = async (params: any) => {
  return await axios.post("/api/TypeAPage/DeleteFirstData", params);
};

/**
 * 删除二级工具
 * @param params
 * @returns
 */
export const DeleteSecondData = async (params: any) => {
  return await axios.post("/api/TypeAPage/DeleteSecondData", params);
};

/**
 * 获取一级工具类型列表
 * @param params
 * @returns
 */
export const GetFirstTypeName = async (params: any) => {
  return await axios.post("/api/TypeAPage/GetFirstTypeName", params);
};

/**
 * 获取二级工具类型列表
 * @param params
 * @returns
 */
export const GetSecondTypeName = async (params: any) => {
  return await axios.post("/api/TypeAPage/GetSecondTypeName", params);
};

/**
 * 获取属性列表
 * @param params
 * @returns
 */
export const GetPropertyName = async (params: any) => {
  return await axios.post("/api/TypeAPage/GetPropertyName", params);
};

/**
 * 获取一级菜单
 * @param params
 * @returns
 */
export const GetFirstType = async (params: any) => {
  return await axios.post("/api/TypeAPage/GetFirstType", params);
};

/**
 * 获取二级菜单
 * @param params
 * @returns
 */
export const GetSecondType = async (params: any) => {
  return await axios.post("/api/TypeAPage/GetSecondType", params);
};

/**
 * 修改一级工具
 * @param params
 * @returns
 */
export const UpdateFirstData = async (params: any) => {
  return await axios.post("/api/TypeAPage/UpdateFirstData", params);
};

/**
 * 修改一级工具
 * @param params
 * @returns
 */
export const UpdateSecondData = async (params: any) => {
  return await axios.post("/api/TypeAPage/UpdateSecondData", params);
};

/**
 * 修改一级工具
 * @param params
 * @returns
 */
export const GetProcessNameList = async (params: any) => {
  return await axios.post("/api/TypeAPage/GetProcessNameList", params);
};

/**
 * 模块分区
 * @param params
 * @returns
 */
export const InsertOrUpdatePartitionData = async (params: any) => {
  return await axios.post(
    "/api/PageModuleSetup/InsertOrUpdatePartitionData",
    params
  );
};

/**
 * 获取模块分区信息
 * @param params
 * @returns
 */
export const GetPartitionData = async (params: any) => {
  return await axios.post("/api/PageModuleSetup/GetPartitionData", params);
};

/**
 * 获取用户对应A2 modelId
 * @param params
 * @returns
 */
export const GetUserA2ModelId = async (params: any) => {
  return await axios.post("/api/CompanyModuleSetup/GetUserA2ModelId", params);
};

/**
 * 删除模块分区数据
 * @param params
 * @returns
 */
export const DeletePartitionData = async (params: any) => {
  return await axios.post("/api/PageModuleSetup/DeletePartitionData", params);
};
